package com.p2p.trans.client.enums;



/**
 * 记账模型枚举
 * 
 * @author leiruiqi
 */
public enum RecordModelEnum {
    STANDARD(0), // 标准记账模式
    CACHE(1), // 标准记账模式
   /* CACHE_CREDIT(1), // 配置式收款缓冲贷方记账
    CACHE_DEBIT(2), // 配置式付款缓冲借方记账
   */
    /*BATCH_CACHE_CREDIT(4), //批量收款任务缓冲贷方记账
    BATCH_CACHE_DEBIT(5), //批量付款任务缓冲借方记账
    DOUBLE_CACHE(6), //双边缓冲@see DoubleCacheAccount
    UN_FREEZE_THEN_DEBIT_CACHE(7),//解冻后付款缓冲
*/
    ;
    private final int intValue;

    RecordModelEnum(int intValue) {
        this.intValue = intValue;
    }

    public int getIntValue() {
        return this.intValue;
    }

    public static RecordModelEnum getByIntValue(int value) {
        for (RecordModelEnum test : values()) {
            if (test.intValue == value) {
                return test;
            }
        }

        return null;
    }
}